#!/usr/bin/python3
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-

import os
from common_python import die, check_package_installed


check_package_installed({
    "gentoo": [
        "sys-devel/gcc-config",
    ],
})

chost = os.listdir("/usr/lib/gcc")
if len(chost) != 1:
    die("Failed to determine CHOST.")
chost = chost[0]

print("/etc/env.d/04gcc-%s" % (chost))
print("/etc/env.d/gcc/config-%s" % (chost))

print("/etc/ld.so.conf.d/05gcc-%s.conf" % (chost))

print("/usr/bin/cc")
print("/usr/bin/c++")
print("/usr/bin/cpp")
print("/usr/bin/g++")
print("/usr/bin/gcc")
print("/usr/bin/gcc-ar")
print("/usr/bin/gcc-nm")
print("/usr/bin/gcc-ranlib")
print("/usr/bin/gcov")
print("/usr/bin/gcov-dump")
print("/usr/bin/gcov-tool")
print("/usr/bin/gfortran")
print("/usr/bin/gkeytool")
print("/usr/bin/gorbd")
print("/usr/bin/grmic")
print("/usr/bin/grmid")
print("/usr/bin/grmiregistry")
print("/usr/bin/gserialver")
print("/usr/bin/gtnameserv")

print("/usr/bin/%s-c++" % (chost))
print("/usr/bin/%s-cpp" % (chost))
print("/usr/bin/%s-g++" % (chost))
print("/usr/bin/%s-gcc" % (chost))
print("/usr/bin/%s-gcc-ar" % (chost))
print("/usr/bin/%s-gcc-nm" % (chost))
print("/usr/bin/%s-gcc-ranlib" % (chost))
print("/usr/bin/%s-gcov" % (chost))
print("/usr/bin/%s-gcov-dump" % (chost))
print("/usr/bin/%s-gcov-tool" % (chost))
print("/usr/bin/%s-gfortran" % (chost))
print("/usr/bin/%s-gkeytool" % (chost))
print("/usr/bin/%s-gorbd" % (chost))
print("/usr/bin/%s-grmic" % (chost))
print("/usr/bin/%s-grmid" % (chost))
print("/usr/bin/%s-grmiregistry" % (chost))
print("/usr/bin/%s-gserialver" % (chost))
print("/usr/bin/%s-gtnameserv" % (chost))

print("/usr/%s/binutils-bin/lib/bfd-plugins/liblto_plugin.so" % (chost))
